'use strict';
// 配置路由映射
/**
 * @param {Egg.Application} app - egg application
 */
//  controller. /文件名称 /./function/ 
module.exports = app => {
  const { router, controller } = app;
  console.log('app=>', app);
  router.get('/', controller.home.heo);
  router.get('/name', controller.name.heo); // demo
  router.get('/list', controller.list.index); //查询
  router.post('/list/create', controller.list.create); //新增
  router.post('/list/del', controller.list.del); //删除
  router.post('/user', controller.user.login); // 简单登录
};
